package com.chzu.controller;

import com.chzu.result.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.realm.JAASRealm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName TestController
 * @Description TODO
 * @Date 2022/01/27 21:24
 */
@RestController
@Slf4j
@Api(tags = "测试接口")
public class TestController {
    @PreAuthorize("hasAnyAuthority('USER_DELETE')")
    @ApiOperation("测试接口")
    @GetMapping("/test")
    public JsonResult<String> test() {
        return JsonResult.ok("成功");
    }
}
